#include<stdio.h>
#include<math.h>
#include<stdlib.h>

#define V 25 // m/s
#define g 10
#define PI 3.1415926


double a2s(double a){
    return a*(PI/180);
} 

void pd(){//输出射程
    double alpha = 0;
    
    for(alpha=0;alpha<90;alpha+=5){

                double s = a2s(2 * alpha);
                //double X = V*V*cos(alpha)*2*sin(alpha)/g;
                  double X = V * V * sin(s) /g;
                printf("%lf : ",alpha);
                printf("%lf \n",X);
        }
}

void pz(){//输出柱子图
    double alpha = 0;
    int z = 0;
    for(alpha=0;alpha<90;alpha+=5){
                double s = a2s(2 * alpha);
                double X = V * V * sin(s) /g;
                printf("%lf : ",alpha);
                z = floor(X);
                for(int i=0;i<z;i++){
                    putchar('#');
                }
                printf("\n");
        }
}
int main(){
        puts("-pz()-");
       pz();
        puts("-pd()-");
       pd();
}